import numpy as np
a = np.arange(24)
print(a.ndim)   # 查看秩
'''1'''

# 2.转秩reshape()
b = a.reshape(4,3,2)
print(b.ndim)   # 查看秩
'''3'''
